package com.xxx.td;

import java.io.IOException;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/8/2  10:56
 * @Copyright
 */
public class DeamDome01 extends Thread {

    public static void main(String[] args) throws IOException {

        final DeamDome01 deamDome01 = new DeamDome01();
        deamDome01.setDaemon(true);//守护线程
        deamDome01.start();
        System.in.read();
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            try {
                Thread.sleep(50000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName() + ",AAAA" + i);
        }
    }
}
